package com.lian.hope.service;

import com.lian.hope.model.dto.DynamicCommentDTO;
import com.lian.hope.model.dto.DynamicDTO;
import com.lian.hope.model.vo.DynamicCommentVO;
import com.lian.hope.model.vo.DynamicVO;
import com.lian.hope.model.vo.PageBean;

import java.util.List;

public interface DynamicService {
    void insertDynamic(DynamicDTO dynamic, Long userId);

    PageBean<DynamicVO> listDynamic(Integer pageNum, Integer pageSize);

    List<DynamicVO> listDynamicByUserId(Long userId);

    void deleteDynamicById(Long dynamicId);

    Boolean insertDynamicLike(Long dynamicId, Long userId);

    void deleteDynamicLikeById(Long dynamicId, Long userId);

    void insertDynamicComment(DynamicCommentDTO dynamicCommentDTO,Long dynamicId, Long userId);

    PageBean<DynamicCommentVO> listDynamicCommentById(Integer pageNum, Integer pageSize, Long dynamicId);

    DynamicVO getDynamicById(Long dynamicId);

    Boolean checkUserLikeDynamic(Long dynamicId, Long userId);
}
